﻿using System;
using System.Runtime.Serialization;

namespace Sfd.Entities
{
    [DataContract(Namespace="http://schemas.c2i.fr")]
    public class AzureSyncProject 
    {
        public AzureSyncProject()
        {
            Id = Guid.NewGuid();
        }

        /// <summary>
        /// Identifiant unique du project
        /// </summary>
        [DataMember]
        public Guid Id { get; set; }

        /// <summary>
        /// Nom du projet
        /// </summary>
        [DataMember]
        public string FriendlyName { get; set; }

        /// <summary>
        /// Compte de storage Azure
        /// </summary>
        [DataMember]
        public string AccountName { get; set; }

        /// <summary>
        /// Clé d'accès du compte Azure
        /// </summary>
        [DataMember]
        public string SharedKey { get; set; }

        /// <summary>
        /// Nom du container
        /// </summary>
        [DataMember]
        public string ContainerName { get; set; }

        /// <summary>
        /// Dossier local
        /// </summary>
        [DataMember]
        public string LocalFolder { get; set; }

        /// <summary>
        /// Mode de synchronisation
        /// </summary>
        [DataMember]
        public SyncMaster Master { get; set; }

        /// <summary>
        /// Suppression des fichiers lors de la synchronisation
        /// </summary>
        [DataMember]
        public bool Delete { get; set; }

    }
}
